<ol class="breadcrumb">
  <li><a href="#">公司信息</a></li>
  <li class="active"><a href="#">基本信息</a></li>
  <li>修改</li>
</ol>
<strong><%= notice %></strong>




<div id="app-container" class="container" myapp="STORE_INFO_EDIT">

  <div class="app">
     <div class="app-inner clearfix">
       <%= form_for @store, url: ruiqu_store_path, html: { class: "form-horizontal", multipart: true } do |f| %>
         <div class="form-group form-group-lg">
           <%= f.label "公司名称:", class: 'col-sm-2 control-label' %>
           <div class="col-sm-3">
             <%= f.text_field :name, class: 'form-control', placeholder: "请输入公司名称!" %>
           </div>
         </div>
         <%= f.fields_for :store_basic_info do |ff|  %>
           <div class="form-group form-group-lg">
             <%= ff.label '法人代表:', class: 'col-sm-2 control-label' %>
             <div class="col-sm-3">
               <%= ff.text_field :legal_person, class: 'form-control', placeholder: "请输入法人姓名!" %>
             </div>
           </div>

           <div class="form-group form-group-lg">
             <%= ff.label '地址:', class: 'col-sm-2 control-label' %>
             <div class="col-sm-3">
               <%= ff.text_field :address, class: 'form-control', placeholder: "请输入企业地址!" %>
             </div>
           </div>

           <div class="form-group form-group-lg">
             <%= ff.label '启动资金:', class: 'col-sm-2 control-label' %>
             <div class="col-sm-3">
               <%= ff.text_field :register_money, class: 'form-control', placeholder: "请输入注册资金!" %>
             </div>
           </div>

           <div class="form-group form-group-lg">
             <%= ff.label '企业类型:', class: 'col-sm-2 control-label' %>
             <div class="col-sm-3">
               <%= ff.text_field :company_type, class: 'form-control', placeholder: "请输入企业的类型!" %>
             </div>
           </div>

           <div class="form-group form-group-lg">
             <%= ff.label '注册时间:', class: 'col-sm-2 control-label' %>
             <div class="col-sm-3">
               <%= ff.date_field :set_from, class: 'form-control', placeholder: "请输入企业注册时间!" %>
             </div>
           </div>

          <div class="form-group">
            <label for="info-logo" class="col-sm-2 control-label">Logo：</label>
            <div class="col-sm-3">
              <a href="javascript:void(0);" role="button" class="loadButtonChoose">添加图片
              <input type="file" maxlength="64" class="form-control col-sm-3 upload_logo_img noVisible" id="" name="store[img]"></a>
              <input type="hidden" maxlength="64" name="logo_img_cache">
              <div class="img-holder" style="margin-top:20px">
                <%= image_tag @store.url, class: 'preview_img', style: 'width:64px;height:64px;display: block'  %>
                <span style="color:red">建议上传图片的尺寸不超过500px * 500px</span>
              </div>
            </div>
          </div>

           <div class="form-group form-group-lg">
             <%= ff.label '公司介绍:', class: 'col-sm-2 control-label' %>
             <div class="col-sm-10">
               <%= ff.text_area :main_industry, class: 'form-control input-lg', placeholder: "请输入企业经营产品!" %>
             </div>
           </div>

           <div class="form-group form-group-lg">
             <%= ff.label ' ', class: 'col-sm-2 control-label' %>
             <div class="col-sm-10">
               <%= f.submit "确定", class: 'btn btn-crud positio' %>
             </div>
           </div>
         <% end %>


       <% end %>
      </div>
  </div>
</div>
